using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace AdminApiTemplate.Aggregates.Login
{
    public class FromWordPressRequestModel
    {
        /// <summary>
        /// 邮箱
        /// </summary>
        [Description("邮箱")]
        [Required(ErrorMessage = "必填")]
        [RegularExpression("^.+[@@](.+[.])+.+$", ErrorMessage = "邮箱无效")]
        [MaxLength(50, ErrorMessage = "最多{0}个字符")]
        public string Email { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        [Description("密码")]
        [Required(ErrorMessage = "必填")]
        [MaxLength(50, ErrorMessage = "最多{0}个字符")]
        public string UserPass { get; set; }
    }
}
